package com.lwj.liwanjia.model;

import com.lwj.liwanjia.api.ApiService;
import com.lwj.liwanjia.bean.SendYzmBean;
import com.lwj.liwanjia.utils.RetrofitHelper;

import rx.Subscriber;
import rx.android.schedulers.AndroidSchedulers;
import rx.schedulers.Schedulers;

/**
 * Created by Administrator on 2017/12/1.
 */

public class SendYzmModel {
    public void sendYzm(String token, String phone, Subscriber<SendYzmBean> subscriber) {
        RetrofitHelper.getSingleRetrofit()
                .create(ApiService.class)
                .sendYzm(token, phone)
                .subscribeOn(Schedulers.io())
                .observeOn(AndroidSchedulers.mainThread())
                .subscribe(subscriber);
    }
}
